Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore not valid extension name in jackson CloudEventDeserializer #429

Conversation

mhyeon-lee
Copy link

@mhyeon-lee mhyeon-lee commented Dec 7, 2021

CloudEventDeserializer by cloudevents-json-jackson throws an exception when an invalid extension key is included.
Since the extension attribute is not a madatory value, why don't CloudEventDeserializer ignore invalid attributes and run Deserialize?

I modified to ignore the invalid extensionName in CloudEventDeserializer.

Fixes #428

@mhyeon-lee mhyeon-lee force-pushed the ignore-not-valid-extension-name-in-cloud-event-deserializer branch from a2344e1 to 20f367d Compare December 7, 2021 15:19
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sending this PR!

@mhyeon-lee mhyeon-lee force-pushed the ignore-not-valid-extension-name-in-cloud-event-deserializer branch from cc4963e to 2c71c8a Compare December 8, 2021 07:53
@mhyeon-lee mhyeon-lee requested a review from pierDipi December 8, 2021 13:23
@mhyeon-lee mhyeon-lee force-pushed the ignore-not-valid-extension-name-in-cloud-event-deserializer branch 2 times, most recently from bd32f3e to e23463a Compare December 10, 2021 00:38
@mhyeon-lee mhyeon-lee force-pushed the ignore-not-valid-extension-name-in-cloud-event-deserializer branch from e23463a to f06343a Compare December 10, 2021 00:39
@mhyeon-lee mhyeon-lee requested a review from pierDipi December 10, 2021 00:41
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

LGTM

@pierDipi pierDipi merged commit ceb0675 into cloudevents:master Dec 10, 2021
@pierDipi pierDipi added this to the 2.3 milestone Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignore not valid extension key format in CloudEventDeserializer (jackson)
2 participants